class DebateRecorder:
    def __init__(self):
        # 初始化一个空列表用于存储辩论记录
        self.records = []

    def record(self, stage, speaker, content, side=""):
        """
        记录辩论信息
        :param stage: 辩论阶段
        :param side: 正反方
        :param speaker: 发言人
        :param content: 发言内容
        """
        record = {
            "stage": stage,
            "side": side,
            "speaker": speaker,
            "content": content
        }
        self.records.append(record)

    def summarize_records(self):
        """
        汇总记录，生成适合输入大模型的格式
        :return: 汇总后的字符串
        """
        summary = ""
        for record in self.records:
            summary += f"辩论阶段: {record['stage']}, 正反方: {record['side']}, 发言者: {record['speaker']}, 发言内容:\n {record['content']}\n"
        return summary
